using Google.ProtocolBuffers;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class MicroMsgRequest : GeneratedMessageLite<MicroMsgRequest, MicroMsgRequest.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<MicroMsgRequest, MicroMsgRequest.Builder>
		{
			private bool resultIsReadOnly;
			private MicroMsgRequest result;
			protected override MicroMsgRequest.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override MicroMsgRequest MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override MicroMsgRequest DefaultInstanceForType
			{
				get
				{
					return MicroMsgRequest.DefaultInstance;
				}
			}
			public SKBuiltinString_t FromUserName
			{
				get
				{
					return this.result.FromUserName;
				}
				set
				{
					this.SetFromUserName(value);
				}
			}
			public SKBuiltinString_t ToUserName
			{
				get
				{
					return this.result.ToUserName;
				}
				set
				{
					this.SetToUserName(value);
				}
			}
			public uint Type
			{
				get
				{
					return this.result.Type;
				}
				set
				{
					this.SetType(value);
				}
			}
			public string Content
			{
				get
				{
					return this.result.Content;
				}
				set
				{
					this.SetContent(value);
				}
			}
			public uint CreateTime
			{
				get
				{
					return this.result.CreateTime;
				}
				set
				{
					this.SetCreateTime(value);
				}
			}
			public string ClientMsgId
			{
				get
				{
					return this.result.ClientMsgId;
				}
				set
				{
					this.SetClientMsgId(value);
				}
			}
			public string MsgSource
			{
				get
				{
					return this.result.MsgSource;
				}
				set
				{
					this.SetMsgSource(value);
				}
			}
			public uint EmojiFlag
			{
				get
				{
					return this.result.EmojiFlag;
				}
				set
				{
					this.SetEmojiFlag(value);
				}
			}
			public Builder()
			{
				this.result = MicroMsgRequest.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(MicroMsgRequest cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private MicroMsgRequest PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					MicroMsgRequest other = this.result;
					this.result = new MicroMsgRequest();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override MicroMsgRequest.Builder Clear()
			{
				this.result = MicroMsgRequest.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override MicroMsgRequest.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new MicroMsgRequest.Builder(this.result);
				}
				return new MicroMsgRequest.Builder().MergeFrom(this.result);
			}
			public override MicroMsgRequest BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override MicroMsgRequest.Builder MergeFrom(IMessageLite other)
			{
				if (other is MicroMsgRequest)
				{
					return this.MergeFrom((MicroMsgRequest)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override MicroMsgRequest.Builder MergeFrom(MicroMsgRequest other)
			{
				return this;
			}
			public override MicroMsgRequest.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override MicroMsgRequest.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(MicroMsgRequest._microMsgRequestFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = MicroMsgRequest._microMsgRequestFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 24u)
					{
						if (num3 <= 10u)
						{
							if (num3 == 0u)
							{
								throw InvalidProtocolBufferException.InvalidTag();
							}
							if (num3 == 10u)
							{
								SKBuiltinString_t.Builder builder = SKBuiltinString_t.CreateBuilder();
								if (this.result.hasFromUserName)
								{
									builder.MergeFrom(this.FromUserName);
								}
								input.ReadMessage(builder, extensionRegistry);
								this.FromUserName = builder.BuildPartial();
								continue;
							}
						}
						else
						{
							if (num3 == 18u)
							{
								SKBuiltinString_t.Builder builder2 = SKBuiltinString_t.CreateBuilder();
								if (this.result.hasToUserName)
								{
									builder2.MergeFrom(this.ToUserName);
								}
								input.ReadMessage(builder2, extensionRegistry);
								this.ToUserName = builder2.BuildPartial();
								continue;
							}
							if (num3 == 24u)
							{
								this.result.hasType = input.ReadUInt32(ref this.result.type_);
								continue;
							}
						}
					}
					else
					{
						if (num3 <= 40u)
						{
							if (num3 == 34u)
							{
								this.result.hasContent = input.ReadString(ref this.result.content_);
								continue;
							}
							if (num3 == 40u)
							{
								this.result.hasCreateTime = input.ReadUInt32(ref this.result.createTime_);
								continue;
							}
						}
						else
						{
							if (num3 == 50u)
							{
								this.result.hasClientMsgId = input.ReadString(ref this.result.clientMsgId_);
								continue;
							}
							if (num3 == 58u)
							{
								this.result.hasMsgSource = input.ReadString(ref this.result.msgSource_);
								continue;
							}
							if (num3 == 64u)
							{
								this.result.hasEmojiFlag = input.ReadUInt32(ref this.result.emojiFlag_);
								continue;
							}
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public MicroMsgRequest.Builder SetFromUserName(SKBuiltinString_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasFromUserName = true;
				this.result.fromUserName_ = value;
				return this;
			}
			public MicroMsgRequest.Builder SetFromUserName(SKBuiltinString_t.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasFromUserName = true;
				this.result.fromUserName_ = builderForValue.Build();
				return this;
			}
			public MicroMsgRequest.Builder MergeFromUserName(SKBuiltinString_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasFromUserName && this.result.fromUserName_ != SKBuiltinString_t.DefaultInstance)
				{
					this.result.fromUserName_ = SKBuiltinString_t.CreateBuilder(this.result.fromUserName_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.fromUserName_ = value;
				}
				this.result.hasFromUserName = true;
				return this;
			}
			public MicroMsgRequest.Builder ClearFromUserName()
			{
				this.PrepareBuilder();
				this.result.hasFromUserName = false;
				this.result.fromUserName_ = null;
				return this;
			}
			public MicroMsgRequest.Builder SetToUserName(SKBuiltinString_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasToUserName = true;
				this.result.toUserName_ = value;
				return this;
			}
			public MicroMsgRequest.Builder SetToUserName(SKBuiltinString_t.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasToUserName = true;
				this.result.toUserName_ = builderForValue.Build();
				return this;
			}
			public MicroMsgRequest.Builder MergeToUserName(SKBuiltinString_t value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasToUserName && this.result.toUserName_ != SKBuiltinString_t.DefaultInstance)
				{
					this.result.toUserName_ = SKBuiltinString_t.CreateBuilder(this.result.toUserName_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.toUserName_ = value;
				}
				this.result.hasToUserName = true;
				return this;
			}
			public MicroMsgRequest.Builder ClearToUserName()
			{
				this.PrepareBuilder();
				this.result.hasToUserName = false;
				this.result.toUserName_ = null;
				return this;
			}
			public MicroMsgRequest.Builder SetType(uint value)
			{
				this.PrepareBuilder();
				this.result.hasType = true;
				this.result.type_ = value;
				return this;
			}
			public MicroMsgRequest.Builder ClearType()
			{
				this.PrepareBuilder();
				this.result.hasType = false;
				this.result.type_ = 0u;
				return this;
			}
			public MicroMsgRequest.Builder SetContent(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasContent = true;
				this.result.content_ = value;
				return this;
			}
			public MicroMsgRequest.Builder ClearContent()
			{
				this.PrepareBuilder();
				this.result.hasContent = false;
				this.result.content_ = "";
				return this;
			}
			public MicroMsgRequest.Builder SetCreateTime(uint value)
			{
				this.PrepareBuilder();
				this.result.hasCreateTime = true;
				this.result.createTime_ = value;
				return this;
			}
			public MicroMsgRequest.Builder ClearCreateTime()
			{
				this.PrepareBuilder();
				this.result.hasCreateTime = false;
				this.result.createTime_ = 0u;
				return this;
			}
			public MicroMsgRequest.Builder SetClientMsgId(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasClientMsgId = true;
				this.result.clientMsgId_ = value;
				return this;
			}
			public MicroMsgRequest.Builder ClearClientMsgId()
			{
				this.PrepareBuilder();
				this.result.hasClientMsgId = false;
				this.result.clientMsgId_ = "";
				return this;
			}
			public MicroMsgRequest.Builder SetMsgSource(string value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasMsgSource = true;
				this.result.msgSource_ = value;
				return this;
			}
			public MicroMsgRequest.Builder ClearMsgSource()
			{
				this.PrepareBuilder();
				this.result.hasMsgSource = false;
				this.result.msgSource_ = "";
				return this;
			}
			public MicroMsgRequest.Builder SetEmojiFlag(uint value)
			{
				this.PrepareBuilder();
				this.result.hasEmojiFlag = true;
				this.result.emojiFlag_ = value;
				return this;
			}
			public MicroMsgRequest.Builder ClearEmojiFlag()
			{
				this.PrepareBuilder();
				this.result.hasEmojiFlag = false;
				this.result.emojiFlag_ = 0u;
				return this;
			}
		}
		public const int FromUserNameFieldNumber = 1;
		public const int ToUserNameFieldNumber = 2;
		public const int TypeFieldNumber = 3;
		public const int ContentFieldNumber = 4;
		public const int CreateTimeFieldNumber = 5;
		public const int ClientMsgIdFieldNumber = 6;
		public const int MsgSourceFieldNumber = 7;
		public const int EmojiFlagFieldNumber = 8;
		private static readonly MicroMsgRequest defaultInstance;
		private static readonly string[] _microMsgRequestFieldNames;
		private static readonly uint[] _microMsgRequestFieldTags;
		private bool hasFromUserName;
		private SKBuiltinString_t fromUserName_;
		private bool hasToUserName;
		private SKBuiltinString_t toUserName_;
		private bool hasType;
		private uint type_;
		private bool hasContent;
		private string content_ = "";
		private bool hasCreateTime;
		private uint createTime_;
		private bool hasClientMsgId;
		private string clientMsgId_ = "";
		private bool hasMsgSource;
		private string msgSource_ = "";
		private bool hasEmojiFlag;
		private uint emojiFlag_;
		private int memoizedSerializedSize = -1;
		public static MicroMsgRequest DefaultInstance
		{
			get
			{
				return MicroMsgRequest.defaultInstance;
			}
		}
		public override MicroMsgRequest DefaultInstanceForType
		{
			get
			{
				return MicroMsgRequest.DefaultInstance;
			}
		}
		protected override MicroMsgRequest ThisMessage
		{
			get
			{
				return this;
			}
		}
		public SKBuiltinString_t FromUserName
		{
			get
			{
				return this.fromUserName_ ?? SKBuiltinString_t.DefaultInstance;
			}
		}
		public SKBuiltinString_t ToUserName
		{
			get
			{
				return this.toUserName_ ?? SKBuiltinString_t.DefaultInstance;
			}
		}
		public uint Type
		{
			get
			{
				return this.type_;
			}
		}
		public string Content
		{
			get
			{
				return this.content_;
			}
		}
		public uint CreateTime
		{
			get
			{
				return this.createTime_;
			}
		}
		public string ClientMsgId
		{
			get
			{
				return this.clientMsgId_;
			}
		}
		public string MsgSource
		{
			get
			{
				return this.msgSource_;
			}
		}
		public uint EmojiFlag
		{
			get
			{
				return this.emojiFlag_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasFromUserName && this.hasToUserName && this.hasType && this.hasCreateTime;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasFromUserName)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.FromUserName);
				}
				if (this.hasToUserName)
				{
					num += CodedOutputStream.ComputeMessageSize(2, this.ToUserName);
				}
				if (this.hasType)
				{
					num += CodedOutputStream.ComputeUInt32Size(3, this.Type);
				}
				if (this.hasContent)
				{
					num += CodedOutputStream.ComputeStringSize(4, this.Content);
				}
				if (this.hasCreateTime)
				{
					num += CodedOutputStream.ComputeUInt32Size(5, this.CreateTime);
				}
				if (this.hasClientMsgId)
				{
					num += CodedOutputStream.ComputeStringSize(6, this.ClientMsgId);
				}
				if (this.hasMsgSource)
				{
					num += CodedOutputStream.ComputeStringSize(7, this.MsgSource);
				}
				if (this.hasEmojiFlag)
				{
					num += CodedOutputStream.ComputeUInt32Size(8, this.EmojiFlag);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private MicroMsgRequest()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] microMsgRequestFieldNames = MicroMsgRequest._microMsgRequestFieldNames;
			if (this.hasFromUserName)
			{
				output.WriteMessage(1, microMsgRequestFieldNames[4], this.FromUserName);
			}
			if (this.hasToUserName)
			{
				output.WriteMessage(2, microMsgRequestFieldNames[6], this.ToUserName);
			}
			if (this.hasType)
			{
				output.WriteUInt32(3, microMsgRequestFieldNames[7], this.Type);
			}
			if (this.hasContent)
			{
				output.WriteString(4, microMsgRequestFieldNames[1], this.Content);
			}
			if (this.hasCreateTime)
			{
				output.WriteUInt32(5, microMsgRequestFieldNames[2], this.CreateTime);
			}
			if (this.hasClientMsgId)
			{
				output.WriteString(6, microMsgRequestFieldNames[0], this.ClientMsgId);
			}
			if (this.hasMsgSource)
			{
				output.WriteString(7, microMsgRequestFieldNames[5], this.MsgSource);
			}
			if (this.hasEmojiFlag)
			{
				output.WriteUInt32(8, microMsgRequestFieldNames[3], this.EmojiFlag);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasFromUserName)
			{
				num ^= this.fromUserName_.GetHashCode();
			}
			if (this.hasToUserName)
			{
				num ^= this.toUserName_.GetHashCode();
			}
			if (this.hasType)
			{
				num ^= this.type_.GetHashCode();
			}
			if (this.hasContent)
			{
				num ^= this.content_.GetHashCode();
			}
			if (this.hasCreateTime)
			{
				num ^= this.createTime_.GetHashCode();
			}
			if (this.hasClientMsgId)
			{
				num ^= this.clientMsgId_.GetHashCode();
			}
			if (this.hasMsgSource)
			{
				num ^= this.msgSource_.GetHashCode();
			}
			if (this.hasEmojiFlag)
			{
				num ^= this.emojiFlag_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			MicroMsgRequest microMsgRequest = value as MicroMsgRequest;
			return microMsgRequest != null && (this.hasFromUserName == microMsgRequest.hasFromUserName && (!this.hasFromUserName || this.fromUserName_.Equals(microMsgRequest.fromUserName_))) && (this.hasToUserName == microMsgRequest.hasToUserName && (!this.hasToUserName || this.toUserName_.Equals(microMsgRequest.toUserName_))) && (this.hasType == microMsgRequest.hasType && (!this.hasType || this.type_.Equals(microMsgRequest.type_))) && (this.hasContent == microMsgRequest.hasContent && (!this.hasContent || this.content_.Equals(microMsgRequest.content_))) && (this.hasCreateTime == microMsgRequest.hasCreateTime && (!this.hasCreateTime || this.createTime_.Equals(microMsgRequest.createTime_))) && (this.hasClientMsgId == microMsgRequest.hasClientMsgId && (!this.hasClientMsgId || this.clientMsgId_.Equals(microMsgRequest.clientMsgId_))) && (this.hasMsgSource == microMsgRequest.hasMsgSource && (!this.hasMsgSource || this.msgSource_.Equals(microMsgRequest.msgSource_))) && (this.hasEmojiFlag == microMsgRequest.hasEmojiFlag && (!this.hasEmojiFlag || this.emojiFlag_.Equals(microMsgRequest.emojiFlag_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<MicroMsgRequest, MicroMsgRequest.Builder>.PrintField("FromUserName", this.hasFromUserName, this.fromUserName_, writer);
			GeneratedMessageLite<MicroMsgRequest, MicroMsgRequest.Builder>.PrintField("ToUserName", this.hasToUserName, this.toUserName_, writer);
			GeneratedMessageLite<MicroMsgRequest, MicroMsgRequest.Builder>.PrintField("Type", this.hasType, this.type_, writer);
			GeneratedMessageLite<MicroMsgRequest, MicroMsgRequest.Builder>.PrintField("Content", this.hasContent, this.content_, writer);
			GeneratedMessageLite<MicroMsgRequest, MicroMsgRequest.Builder>.PrintField("CreateTime", this.hasCreateTime, this.createTime_, writer);
			GeneratedMessageLite<MicroMsgRequest, MicroMsgRequest.Builder>.PrintField("ClientMsgId", this.hasClientMsgId, this.clientMsgId_, writer);
			GeneratedMessageLite<MicroMsgRequest, MicroMsgRequest.Builder>.PrintField("MsgSource", this.hasMsgSource, this.msgSource_, writer);
			GeneratedMessageLite<MicroMsgRequest, MicroMsgRequest.Builder>.PrintField("EmojiFlag", this.hasEmojiFlag, this.emojiFlag_, writer);
		}
		public static MicroMsgRequest ParseFrom(byte[] data)
		{
			return MicroMsgRequest.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private MicroMsgRequest MakeReadOnly()
		{
			return this;
		}
		public static MicroMsgRequest.Builder CreateBuilder()
		{
			return new MicroMsgRequest.Builder();
		}
		public override MicroMsgRequest.Builder ToBuilder()
		{
			return MicroMsgRequest.CreateBuilder(this);
		}
		public override MicroMsgRequest.Builder CreateBuilderForType()
		{
			return new MicroMsgRequest.Builder();
		}
		public static MicroMsgRequest.Builder CreateBuilder(MicroMsgRequest prototype)
		{
			return new MicroMsgRequest.Builder(prototype);
		}
		static MicroMsgRequest()
		{
			MicroMsgRequest.defaultInstance = new MicroMsgRequest().MakeReadOnly();
			MicroMsgRequest._microMsgRequestFieldNames = new string[]
			{
				"ClientMsgId",
				"Content",
				"CreateTime",
				"EmojiFlag",
				"FromUserName",
				"MsgSource",
				"ToUserName",
				"Type"
			};
			MicroMsgRequest._microMsgRequestFieldTags = new uint[]
			{
				50u,
				34u,
				40u,
				64u,
				10u,
				58u,
				18u,
				24u
			};
			object.ReferenceEquals(micromsg.Proto.MicroMsgRequest.Descriptor, null);
		}
	}
}
